<style>
    .input-group .input-group-addon{background-color:#eee}
</style>
<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="row">
        <div class="col col-xs-8">
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">小区名称:</label>
                <div class="col-xs-12 col-sm-4">
                    <input id="c-building_id" data-source="second/buildings/index" data-field="building_name" 
                    data-search-field="building_name,alias_name1,alias_name2,building_name_en"  data-rule="required" 
                    class="form-control selectpage" name="row[building_id]" placeholder="选择小区名称">
                </div>
                <div class="col-xs-12 col-sm-2">
                    <input id="c-building_areaCode" data-source="area/items/index" data-field="areaName" data-primary-key="areaCode" class="form-control selectpage" name="row[areaCode]" placeholder="所在区域不用填写" />
                </div>
                <div class="col-xs-12 col-sm-2 checkbox text-center">
                    <label><input type="checkbox" name="row[view_level]" value="3" />私房</label>
                </div>
            </div>


            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Address')}:</label>
                <div class="col-xs-12 col-sm-4">
                    <input id="c-address" data-rule="required" class="form-control" name="row[address]" type="text" placeholder="填写地址">
                </div>
                <div class="col-xs-12 col-sm-2">
                    <input id="c-dong" data-rule="required" placeholder="栋号" class="form-control" name="row[dong]" type="text">
                </div>
                <div class="col-xs-12 col-sm-2">
                    <input id="c-shi" data-rule="required" placeholder="房号" class="form-control" name="row[shi]" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Shi_count')}:</label>
                <div class="col-xs-12 col-sm-3">
                    <div class="input-group">
                        <input id="c-shi_count" placeholder="几室" data-rule="required" class="form-control" name="row[shi_count]" type="number">
                        <div class="input-group-addon">室</div>
                    </div>
                </div>
        
                <label class="control-label col-xs-12 col-sm-2">{:__('Ting_count')}:</label>
                <div class="col-xs-12 col-sm-3">
                    <div class="input-group">
                        <input id="c-ting_count" placeholder="几厅" data-rule="required" class="form-control" name="row[ting_count]" type="number">
                        <div class="input-group-addon">厅</div>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Area')}:</label>
                <div class="col-xs-12 col-sm-3">
                    <div class="input-group">
                        <input id="c-area" data-rule="required" class="form-control" name="row[area]" placeholder="填写面积" type="number"> 
                        <div class="input-group-addon">平</div>
                    </div>
                </div>
                <label class="control-label col-xs-12 col-sm-2">{:__('Build_year')}:</label>
                <div class="col-xs-12 col-sm-3">
                    <div class="input-group">
                        <input id="c-build_year" class="form-control" name="row[build_year]" type="number" placeholder="建成年代">
                        <div class="input-group-addon">年</div>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Unit_price')}:</label>
                <div class="col-xs-12 col-sm-3">
                    <div class="input-group">
                        <input id="c-unit_price" data-rule="required" class="form-control" name="row[unit_price]" type="number" placeholder="月/元">
                        <div class="input-group-addon">元</div>
                    </div>
                </div>
                <label class="control-label col-xs-12 col-sm-2">{:__('Deposit')}:</label>
                <div class="col-xs-12 col-sm-3">
                    <div class="input-group">
                        <input id="c-deposit" data-rule="required" class="form-control" name="row[deposit]" type="number" placeholder="押金 元">
                        <div class="input-group-addon">元</div>
                    </div>
                </div>
            </div>

            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Floor')}:</label>
                <div class="col-xs-12 col-sm-3">
                    <div class="input-group">
                        <input id="c-floor" data-rule="required" class="form-control" name="row[floor]" type="number" placeholder="所在层">
                        <div class="input-group-addon">楼</div>
                    </div>
                </div>
                <label class="control-label col-xs-12 col-sm-2">{:__('Floor_total')}:</label>
                <div class="col-xs-12 col-sm-3">
                    <div class="input-group">
                        <input id="c-floor_total" data-rule="required" class="form-control" name="row[floor_total]" type="number" placeholder="总层数">
                        <div class="input-group-addon">楼</div>
                    </div>
                </div>
            </div>
        
        
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Decoration_id')}:</label>
                <div class="col-xs-12 col-sm-3">
                    <input id="c-decoration_id" data-field="decoration" data-rule="required" data-source="second/decoration/index" class="form-control selectpage" name="row[decoration_id]" type="text" value="2">
                </div>
                <label class="control-label col-xs-12 col-sm-2">{:__('Type_id')}:</label>
                <div class="col-xs-12 col-sm-3">
                    <input id="c-type_id" data-rule="required" data-field="type_name" data-source="newhouse/building/types/index" class="form-control selectpage" name="row[type_id]" type="text" value="1">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Customer_name')}:</label>
                <div class="col-xs-12 col-sm-3">
                    <input id="c-customer_name" data-rule="required" class="form-control" name="row[customer_name]" type="text">
                </div>
        
                <label class="control-label col-xs-12 col-sm-2">{:__('Mobile')}:</label>
                <div class="col-xs-12 col-sm-3">
                    <input id="c-mobile" data-rule="required" class="form-control" name="row[mobile]" type="text">
                </div>
            </div>
        </div>
        <div class="col col-xs-4">
            <div class="panel panel-default">
                <div class="panel-heading">楼栋查重</div>
                <div class="panel-body">
                    <ul class="list-group" id="ulDuplicateDongShi">
                    </ul>
                </div>
            </div>
            <div class="panel panel-default">
                <div class="panel-heading">号码查重</div>
                <div class="panel-body">
                    <ul class="list-group" id="ulDuplicateMobile">
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
